<?php
require_once('MainModel.php');

/**
 * Add your description here
 *
 * @author Anh euro
 * @copyright Hipt Group
 * @license http://framework.zend.com/license/new-bsd     New BSD License
 */
 
class Vina_Model_Configs extends MainModel
{

    /**
     * mysql var type int(1)
     *
     * @var int     
     */
    protected $_Id;
    
    /**
     * mysql var type varchar(255)
     *
     * @var string     
     */
    protected $_Facebook;
    
    /**
     * mysql var type varchar(255)
     *
     * @var string     
     */
    protected $_Twiter;
    
    /**
     * mysql var type varchar(255)
     *
     * @var string     
     */
    protected $_Google;
    
    /**
     * mysql var type varchar(100)
     *
     * @var string     
     */
    protected $_Banner;
    
    /**
     * mysql var type varchar(100)
     *
     * @var string     
     */
    protected $_Logo;
    
    /**
     * mysql var type varchar(255)
     *
     * @var string     
     */
    protected $_Title;
    
    /**
     * mysql var type varchar(255)
     *
     * @var string     
     */
    protected $_Meta;
    
    /**
     * mysql var type varchar(100)
     *
     * @var string     
     */
    protected $_CompanyName;
    
    /**
     * mysql var type varchar(70)
     *
     * @var string     
     */
    protected $_Email;
    
    /**
     * mysql var type varchar(50)
     *
     * @var string     
     */
    protected $_Phone;
    
    /**
     * mysql var type varchar(50)
     *
     * @var string     
     */
    protected $_Mobile;
    
    /**
     * mysql var type text
     *
     * @var text     
     */
    protected $_Map;
    
    /**
     * mysql var type text
     *
     * @var text     
     */
    protected $_Video;
    
    /**
     * mysql var type varchar(70)
     *
     * @var string     
     */
    protected $_Address;
    
    /**
     * mysql var type varchar(50)
     *
     * @var string     
     */
    protected $_Doc;
    

    

function __construct() {
    $this->setColumnsList(array(
    'id'=>'Id',
    'facebook'=>'Facebook',
    'twiter'=>'Twiter',
    'google'=>'Google',
    'banner'=>'Banner',
    'logo'=>'Logo',
    'title'=>'Title',
    'meta'=>'Meta',
    'company_name'=>'CompanyName',
    'email'=>'Email',
    'phone'=>'Phone',
    'mobile'=>'Mobile',
    'map'=>'Map',
    'video'=>'Video',
    'address'=>'Address',
    'doc'=>'Doc',
    ));
}

	
    
    /**
     * sets column id type int(1)     
     *
     * @param int $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setId($data)
    {
        $this->_Id=$data;
        return $this;
    }

    /**
     * gets column id type int(1)
     * @return int     
     */
     
    public function getId()
    {
        return $this->_Id;
    }
    
    /**
     * sets column facebook type varchar(255)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setFacebook($data)
    {
        $this->_Facebook=$data;
        return $this;
    }

    /**
     * gets column facebook type varchar(255)
     * @return string     
     */
     
    public function getFacebook()
    {
        return $this->_Facebook;
    }
    
    /**
     * sets column twiter type varchar(255)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setTwiter($data)
    {
        $this->_Twiter=$data;
        return $this;
    }

    /**
     * gets column twiter type varchar(255)
     * @return string     
     */
     
    public function getTwiter()
    {
        return $this->_Twiter;
    }
    
    /**
     * sets column google type varchar(255)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setGoogle($data)
    {
        $this->_Google=$data;
        return $this;
    }

    /**
     * gets column google type varchar(255)
     * @return string     
     */
     
    public function getGoogle()
    {
        return $this->_Google;
    }
    
    /**
     * sets column banner type varchar(100)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setBanner($data)
    {
        $this->_Banner=$data;
        return $this;
    }

    /**
     * gets column banner type varchar(100)
     * @return string     
     */
     
    public function getBanner()
    {
        return $this->_Banner;
    }
    
    /**
     * sets column logo type varchar(100)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setLogo($data)
    {
        $this->_Logo=$data;
        return $this;
    }

    /**
     * gets column logo type varchar(100)
     * @return string     
     */
     
    public function getLogo()
    {
        return $this->_Logo;
    }
    
    /**
     * sets column title type varchar(255)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setTitle($data)
    {
        $this->_Title=$data;
        return $this;
    }

    /**
     * gets column title type varchar(255)
     * @return string     
     */
     
    public function getTitle()
    {
        return $this->_Title;
    }
    
    /**
     * sets column meta type varchar(255)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setMeta($data)
    {
        $this->_Meta=$data;
        return $this;
    }

    /**
     * gets column meta type varchar(255)
     * @return string     
     */
     
    public function getMeta()
    {
        return $this->_Meta;
    }
    
    /**
     * sets column company_name type varchar(100)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setCompanyName($data)
    {
        $this->_CompanyName=$data;
        return $this;
    }

    /**
     * gets column company_name type varchar(100)
     * @return string     
     */
     
    public function getCompanyName()
    {
        return $this->_CompanyName;
    }
    
    /**
     * sets column email type varchar(70)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setEmail($data)
    {
        $this->_Email=$data;
        return $this;
    }

    /**
     * gets column email type varchar(70)
     * @return string     
     */
     
    public function getEmail()
    {
        return $this->_Email;
    }
    
    /**
     * sets column phone type varchar(50)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setPhone($data)
    {
        $this->_Phone=$data;
        return $this;
    }

    /**
     * gets column phone type varchar(50)
     * @return string     
     */
     
    public function getPhone()
    {
        return $this->_Phone;
    }
    
    /**
     * sets column mobile type varchar(50)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setMobile($data)
    {
        $this->_Mobile=$data;
        return $this;
    }

    /**
     * gets column mobile type varchar(50)
     * @return string     
     */
     
    public function getMobile()
    {
        return $this->_Mobile;
    }
    
    /**
     * sets column map type text     
     *
     * @param text $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setMap($data)
    {
        $this->_Map=$data;
        return $this;
    }

    /**
     * gets column map type text
     * @return text     
     */
     
    public function getMap()
    {
        return $this->_Map;
    }
    
    /**
     * sets column video type text     
     *
     * @param text $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setVideo($data)
    {
        $this->_Video=$data;
        return $this;
    }

    /**
     * gets column video type text
     * @return text     
     */
     
    public function getVideo()
    {
        return $this->_Video;
    }
    
    /**
     * sets column address type varchar(70)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setAddress($data)
    {
        $this->_Address=$data;
        return $this;
    }

    /**
     * gets column address type varchar(70)
     * @return string     
     */
     
    public function getAddress()
    {
        return $this->_Address;
    }
    
    /**
     * sets column doc type varchar(50)     
     *
     * @param string $data
     * @return Vina_Model_Configs     
     *
     **/

    public function setDoc($data)
    {
        $this->_Doc=$data;
        return $this;
    }

    /**
     * gets column doc type varchar(50)
     * @return string     
     */
     
    public function getDoc()
    {
        return $this->_Doc;
    }
    
    /**
     * returns the mapper class
     *
     * @return Vina_Model_ConfigsMapper
     *
     */

    public function getMapper()
    {
        if (null === $this->_mapper) {
            $this->setMapper(new Vina_Model_ConfigsMapper());
        }
        return $this->_mapper;
    }


    /**
     * deletes current row by deleting a row that matches the primary key
     * 
     * @return int
     */

    public function deleteRowByPrimaryKey()
    {
        if (!$this->getId())
            throw new Exception('Primary Key does not contain a value');
        return $this->getMapper()->getDbTable()->delete('id = '.$this->getId());
    }

}

